import { WebView } from "@tarojs/components";
import Taro, { useRouter } from "@tarojs/taro";

export default function Index() {
	const openId = Taro.getStorageSync("openId");
	const router = useRouter();
	const scene =
		(router.params?.scene && decodeURIComponent(router.params?.scene)) ||
		undefined;

	const url = `https://fenbide.hawnlink.cn?openId=${openId}&from=mini${scene}`;

	return <WebView src={url} />;
}
